
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <%@include file="/static/common/common.jsp"%>
<head>


</head>
    <script src="/static/js/system/layout/officialstu.js"></script>
    <title>正式学员管理</title>
<body>
<%--增加按钮 给tabs--%>
<div id="tt">
    <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-edit"  data-cmd="edit">编辑</a>
    <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-large-chart"  data-cmd="see">查看</a>
    <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-reload" data-cmd="reload">刷新</a>
    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" data-cmd="exportExcel">导出</a>
    <!--高级查询-->
    关键字:<input class="easyui-textbox" style="width: 150px" id="keyword" name="keyword"
               prompt="关键字:姓名/电话"/>

    班级: <input class="easyui-combobox" style="width: 150px" id="classesId" name="classesId" prompt="所在班级"
               data-options="
                                     url:'/systemDictionary/queryDictionaryBillByParentId?pId=19',
                                        valueField: 'id',
                                        textField: 'name'
                                       "/>
    入学时间: <input type="text" class="easyui-datebox" id="beginDate" name="beginDate" prompt="请输入开始时间"/> ~
    <input type="text" class="easyui-datebox" id="endDate" name="endDate" prompt="请输入结束时间"/>
    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"
       data-cmd="query">查询</a>
    <div style="float: right;">
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-back" plain="true" id="transfer"
           data-cmd="transfer">转班</a>
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-lock" plain="true" id="suspend"
           data-cmd="suspend">休学</a>
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-edit" plain="true" id="goBack"
           data-cmd="goBack" style="display: none">复学</a>
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" id="leave"
           data-cmd="leave">劝退</a>
    </div>
</div>
<%--创建table--%>
<table id="curriculumSeries_datagrid"></table>
<%--做一个弹窗--%>
<div id="curriculumSeries_dialog">
    <!--弹框里面包含表单-->
    <form id="edit_form" style="padding:40px 0px 0px 30px;" method="post">
        <input id="stuId" name="id" type="hidden"/>
        <table align="center" cellpadding="0px" cellspacing="0px" style="margin: 0 auto;">
            <tr>
                <td>姓名:</td>
                <td><input type="text" class="easyui-textbox" name="name"/>
                </td>

                <td>年龄:</td>
                <td>
                    <input type="text" class="easyui-textbox" name="age"/>
                </td>
                <td>性别:</td>
                <td>

                    <input type="text" class="easyui-combobox" name="isMan" panelHeight="auto"
                           data-options="
                                            valueField: 'value',
                                            textField: 'text',
                                            editable:false,
                                            data: [{
                                                text: '男',
                                                value: true
                                            },{
                                                text: '女',
                                                value: false
                                            }]"/>
                </td>
            </tr>
            <tr>
                <td>电话:</td>
                <td><input type="text" class="easyui-textbox" name="tel"/>
                </td>

                <td>QQ:</td>
                <td><input type="text" class="easyui-textbox" name="qqNum"/>
                </td>

                <td>邮箱:</td>
                <td><input type="email" class="easyui-textbox" name="email"/></td>
            </tr>
            <tr>
                <td>学校或培训名称:</td>
                <td><input type="text" class="easyui-textbox" name="school"/>
                </td>

                <td>学校客户:</td>
                <td>
                    <input class="easyui-combobox" name="schoolId" panelHeight="auto"
                           data-options="
                                            url:'/systemDictionary/queryDictionaryBillByParentId?pId=13',
                                            editable:false,
                                            valueField: 'id',
                                            textField: 'name'
                                       "/>
                </td>
                <td>学历:</td>
                <td>
                    <input class="easyui-combobox" name="educationId" panelHeight="auto"
                           data-options="
                                            url:'/systemDictionary/queryDictionaryBillByParentId?pId=10',
                                            editable: false,
                                            valueField: 'id',
                                            textField: 'name'
                                       "/>
                </td>
            </tr>
            <tr>
                <td>地址:</td>
                <td><input type="text" class="easyui-textbox" name="address"/>
                </td>
                <td>客户来源:</td>
                <td>
                    <input class="easyui-combobox" name="sourceId" panelHeight="auto"
                           data-options="
                                            url:'/systemDictionary/queryDictionaryBillByParentId?pId=14',
                                            editable:false,
                                            valueField: 'id',
                                            textField: 'name'
                                       "/>
                </td>
                <td>客户类型:</td>
                <td>
                    <input class="easyui-combobox" name="clientType" data-options="
                                            valueField: 'value',
                                            textField: 'text',
                                            editable:false,
                                            data: [{
                                                text: '线上',
                                                value: '0'
                                            },{
                                                text: '线下',
                                                value: '1'
                                            }]"/>
                </td>
            </tr>
            <tr>
                <td>工作年限:</td>
                <td><input type="text" class="easyui-textbox" name="workingYear"/>
                </td>
                <td>班级:</td>
                <td>
                    <input class="easyui-combobox" name="ittclass.id" panelHeight="auto"
                           data-options="
                                            url:'/systemDictionary/queryDictionaryBillByParentId?pId=19',
                                            editable:false,
                                            valueField: 'id',
                                            textField: 'name'
                                       "/>
                </td>

            </tr>
            <tr>
                <td>营销人员:</td>
                <td><input type="text" class="easyui-combobox" name="marketer.id"
                           data-options="
                                            url:'/employee/selectAll',
                                            editable:false,
                                            valueField: 'id',
                                            textField: 'username'
                                       "/>
                </td>
                <td>客户意向校区 :</td>
                <td><input type="text" class="easyui-combobox" name="campusId" panelHeight="auto"
                           data-options="
                                            url:'/systemDictionary/queryDictionaryBillByParentId?pId=12',
                                            editable:false,
                                            valueField: 'id',
                                            textField: 'name'
                                       "/>
                </td>
                <td>转正的时间:</td>
                <td><input type="text" class="easyui-datebox" data-options="editable:false" name="positiveTime"/>
                </td>
            </tr>
            <tr>
                <td>身份证号:</td>
                <td><input type="text" class="easyui-textbox" name="idCard"/>
                </td>

                <td>紧急联系人:</td>
                <td><input type="text" class="easyui-textbox" name="emergencyName"/>
                </td>
                <td>紧急联系人的电话:</td>
                <td><input type="text" class="easyui-textbox" name="emergencyTel"/>
                </td>

            </tr>
            <tr>

                <td>就业意向:</td>
                <td><input type="text" class="easyui-combobox" name="jobintentionId" panelHeight="auto"
                           data-options="
                                        url:'/systemDictionary/queryDictionaryBillByParentId?pId=27',
                                        editable: false,
                                        valueField: 'id',
                                        textField: 'name'
                                       "/>
                </td>

                <td>状态:</td>
                <td>
                    <input type="text" class="easyui-combobox" name="state" panelHeight="auto"
                           data-options="
                                            valueField: 'value',
                                            textField: 'text',
                                             editable: false,
                                            data: [{
                                                text: '在读',
                                                value: '1'
                                            },{
                                                text: '转班中',
                                                value: '2'
                                            },{
                                                text: '休学',
                                                value: '3'
                                            },{
                                                text: '流失',
                                                value: '4'
                                            }]"/>
                </td>
            </tr>
            <tr>
                <td>支付方式:</td>
                <td>
                    <input class="easyui-combobox" name="payment.id" panelHeight="auto"
                           data-options="
                                            url:'/systemDictionary/queryDictionaryBillByParentId?pId=26',
                                            editable: false,
                                            valueField: 'id',
                                            textField: 'name'
                                       "/>
                </td>

            </tr>
        </table>
    </form>
    <%--添加保存按钮--%>
    <!--设置底部保存与取消按钮-->
    <div id="bb">
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="save">保存</a>
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">取消</a>
    </div>
</div>

<div id="off_mask"></div>
</div>

<div id="leave_dialog" style="display: none">
    <form id="leave_form" method="post">
        <input type="hidden" id="officialStuId" name="officialstu.id"/>
        <table style="margin: 20px auto 0px;">
            <tr>
                <td>学员姓名:</td>
                <td>
                    <input type="text" class="easyui-textbox" id="stuName"
                           data-options="readonly:true"/>
                </td>
            </tr>
            <tr>
                <td>就读班级:</td>
                <td>
                    <input class="easyui-textbox"  id="stuClass"
                           data-options="readonly:true"/>
                </td>
            </tr>
            <tr>
                <td>已读天数:</td>
                <td>
                    <input type="number" class="easyui-textbox" name="schoolDays"/>
                </td>
            </tr>
            <tr>
                <td>流失时间:</td>
                <td><input class="easyui-datebox" name="leaveDate" data-options=" editable:false"/></td>
            </tr>
            <tr>
                <td>流失阶段:</td>
                <td>
                    <input class="easyui-combobox" name="leavePhase.id" data-options="
                                        url:'/systemDictionary/queryDictionaryBillByParentId?pId=34',
                                        editable:false,
                                        valueField: 'id',
                                        textField: 'name'
                                       "/>
                </td>
            </tr>
            <tr>
                <td>是否退款:</td>
                <td>
                    <input class="easyui-combobox" name="isRefund" data-options="
                                        valueField: 'value',
                                        textField: 'text',
                                        editable:false,
                                        data: [{
                                            text: '否',
                                            value: '0'
                                        },{
                                            text: '是',
                                            value: '1'
                                        }]"/>
                </td>
            </tr>
            <tr>
                <td>退款金额:</td>
                <td>
                    <input class="easyui-textbox" type="number" name="refundAmount"/>
                </td>
            </tr>
            <tr>
                <td>退学原因:</td>
                <td>  <input name="leaveReasion" class="easyui-textbox" data-options="multiline:true" style="width:250px;height:50px"></td>
            </tr>
        </table>
    </form>


    <div id="leave_form_btns">
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-save" plain="true"
           data-cmd="leaveSave">保存</a>
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-cancel" plain="true"
           data-cmd="leaveCancel">取消</a>
    </div>
</div>

<!--转班-->
<div id="tran_dialog" style="display: none">
    <form id="tran_form" method="post">
        <input type="hidden" id="officialStuTranId" name="student.id"/>
        <table style="margin: 20px auto 0px;">
            <tr>
                <td>学员姓名:</td>
                <td>
                    <input type="text" class="easyui-textbox" id="officialStuTranName"
                           data-options="readonly:true"/>
                </td>
            </tr>
            <tr>
                <td>就读班级:</td>
                <td>
                    <input class="easyui-textbox" id="oldGrade"
                           data-options="readonly:true"/>
                </td>
            </tr>
            <tr>
                <td>目标班级:</td>
                <td>
                    <input class="easyui-combobox" name="newGrade.id" data-options="
                                        url:'/systemDictionary/queryDictionaryBillByParentId?pId=19',
                                        editable:false,
                                        valueField: 'id',
                                        textField: 'name'
                                       "/>
                </td>
            </tr>
        </table>
    </form>
    <%--添加保存按钮--%>
    <!--设置底部保存与取消按钮-->
    <div id="tran_btns">
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="tranSave">保存</a>
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="tranCancel">取消</a>
    </div>

</div>
</body>
</html>
